package com.zmht.specedu.vo;

import java.util.Date;

/**
 * Gamescore entity. @author MyEclipse Persistence Tools
 */

public class GameScore implements java.io.Serializable {

    // Fields

    private Integer id;
//    private Integer gameId;
//    private Integer studentId;
//    private Integer bookId;
    
    private Game game;
    private Student student;
    private Teachbook book;
    private Float score;
    private Date recordDate;
    private int gameLevel = GAME_LEVEL_SIMPLE;
    private Integer teacherID;
    
    public static final int GAME_LEVEL_SIMPLE = 0;
    public static final int GAME_LEVEL_COMMON = 1;
    public static final int GAME_LEVEL_HARD = 2;
    // Constructors

    /** default constructor */
    public GameScore() {
    }

    /** full constructor */
    public GameScore(Game game, Student student, Teachbook book,
	    Float score, Date recordDate) {
	this.game = game;
	this.student = student;
	this.book = book;
	this.score = score;
	this.recordDate = recordDate;
    }

    // Property accessors

    public Integer getId() {
	return this.id;
    }

    public void setId(Integer id) {
	this.id = id;
    }

    public Float getScore() {
	return this.score;
    }

    public void setScore(Float score) {
	this.score = score;
    }

    public Date getRecordDate() {
	return this.recordDate;
    }

    public void setRecordDate(Date recordDate) {
	this.recordDate = recordDate;
    }

    public Game getGame() {
        return game;
    }

    public void setGame(Game game) {
        this.game = game;
    }

    public Student getStudent() {
        return student;
    }

    public void setStudent(Student student) {
        this.student = student;
    }

    public Teachbook getBook() {
        return book;
    }

    public void setBook(Teachbook book) {
        this.book = book;
    }

    public int getGameLevel() {
        return gameLevel;
    }

    public void setGameLevel(int gameLevel) {
        this.gameLevel = gameLevel;
    }

    public Integer getTeacherID() {
        return teacherID;
    }

    public void setTeacherID(Integer teacherID) {
        this.teacherID = teacherID;
    }
    
}